﻿
using Chapter2.exam2_3;

namespace Chapter2.exer2_4_1
{
    public class Program
    {
        static void Main(string[] args)
        {
            Car car = new Car();

            //方法1：直接使用扩展类型的成员调用该扩展方法
            car.SpeedDown(10.0);
            car.FastUp(5.0);

            //方法2：静态调用
            car.SpeedDown(10.0);
            ExtendedCar.FastUp(car, 5.0);

            object obj = new object();
            obj.Welcome();
        }
    }
}
